package com.ws.service.impl;

import com.ws.bean.Categories;
import com.ws.mapper.CategorieMapper;
import com.ws.service.CategorieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategorieServiceImpl implements CategorieService {
    @Autowired
    CategorieMapper categorieMapper;

    @Override
    public List<Categories> list() {
        return categorieMapper.list();
    }

    @Override
    public int add(Categories categories) {
        return categorieMapper.add(categories);
    }

    @Override
    public int delete(Integer id) {
        return categorieMapper.delete(id);
    }
}
